﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ARR.Entities.Validation.ComponentModel;
using ARR.Entities.ComponentModel;
using ARR.Entities.Validation.Common;
using ARR.Shared;

namespace ARR.Entities.Validation
{
    [Serializable]
    public class AttributeTypeInputValidations : InputValidationBase
    {
        private AttributeType attributeType;

        public AttributeTypeInputValidations(AttributeType attributeType)
        {
            this.attributeType = attributeType;
        }

        public override List<ValidationBase> CreateValidations()
        {
            List<ValidationBase> inputValidations = new List<ValidationBase>();

            inputValidations.Add(new Required("Name", Labels.Nombre));
            inputValidations.Add(new StringLength("Name", 100, Labels.Nombre));

            return inputValidations;
        }
    }
}
